<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Pepperstad - Tests</title>

</head>
<body>

    <script src="../lib/jquery-1.6.4.js"></script>
    <script src="../lib/underscore-min.js"></script>
    <script src="../lib/underscore.string.min.js"></script>


    <script>
        // setting up the game's name space.
        pepperstad = {};
    </script>


    <script src="config.js"></script>
    <script src="../scripts/pepperstad/util.js"></script>


    <h1>Tests</h1>

    <h2 id="generator">Generator</h2>
    This test outputs to console.
    <script src="../scripts/pepperstad/ResourceLoader.js"></script>
    <script src="../scripts/pepperstad/Generator.js"></script>
    <script src="../scripts/pepperstad/Units.js"></script>
    <script>
        var rl = new pepperstad.ResourceLoader(),
            gen = new pepperstad.Generator({
                resourceLoader: rl
            });
        rl.loadResources();
        daemon("Loader", 100, function() {
            var i;
            if (rl.loadingComplete()) {
                for (i = 0; i <= 1; i += 0.1)
                    console.log(gen.generateSkills(i));
                return false;
            }
            return true;
        });

    </script>

</body>
</html>